import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  { path: 'mall', loadChildren: () => import('./pages/mall/mall.module').then(m => m.MallModule) },
  { path: 'fkm', loadChildren: () => import('./pages/fkm/fkm.module').then(m => m.FkmModule) },
  { path: 'sixyears', loadChildren: () => import('./pages/six-years/six-years.module').then(m => m.SixYearsModule) },
  { path: '**', pathMatch: 'full', redirectTo: '/mall' },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
